package com.cj.webapp_Start.sp_network

import java.util.*

class KeyMap private constructor(){

    companion object {
        val instance: KeyMap by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            KeyMap()
        }
    }

    var map: MutableMap<String, String> = Hashtable()
    fun putKey(key: String, value: String) {
        map[key] = value
    }

    fun remove(key: String) {
        map.remove(key)
    }

    fun getKey(key: String): String {
        return map[key] ?: ""
    }

     fun getBlogPrivateKey(): String = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMTe5xQ3rzqKI44c0wI3khApoLhbkPeiWVf7YZ0rArtp40BZ5/WSorGMBkhacT5MWUHvTW3uNQBaGVFYK3yIcIfKRGftxXcJzy1bUN7T+QDb/rVXchCpnt+du0ivvnh8fXvG5sSdNKg+7B85NiWl+o7UVFBPTLFqi42GfNhJ7M5VAgMBAAECgYAiIYrqZGUKvxw+7RxgDAZUqwLkM2vEou7eZASeXPCSUV9Grs+aMZvnMCF+tb9gT5hB6B0CbAPgVb6B7clMQ9NOSZaAcIybJJAbEL88OfDLgh4g9tdGmYqX6ybs/taQdEQGnGjPkb+OqZlsZbiV/UiJqBzOwUIo4n1AnruXBonqwQJBAORHn4jaxfvRjzfNwfgvxDDH5YUUq28NjKH4w8TFgzWhHAE1b7FCOFlfv07x07vcIyMgpy5Uq5gsGtoARy2Zk+0CQQDcxuMuxe11BT3dtB5ow3s9czdafkIyYm0gGzLo0cUKjnD57uM3Zrvvo/FCyuIShyt2p7jappdy+PNq6nrNQ6cJAkEAvGPTZ/jMLR5raC05J54b9fnyE5rUQ+jVp5IJ1ej+eJLF7sVvsMSqhi97TSZLi5yHruSys4yStBmp60ERfLNinQJAPH/H655TdtjL3kAogR7oW6uCBKtKqpHsQ3sQlVo+e6kS7np3C0x8vauYRmxgTSF7WJWXg1tZbyknUyoUIsGiOQJBALkP2nI83HXB2H/TZtSuvBPDvD43Rsr/4tLWnoUbKm9V6kpQaLwCyoJH5VybYXXhNRHwXscSjN6dCewq4FFNpN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